package com.bw.baseapplicatio

import android.app.Application
import android.content.Context
import androidx.multidex.MultiDex

open class BaseApplication : Application(){
    companion object {
        private var instance: BaseApplication? = null

        fun getInstance(): BaseApplication? {
            if (instance == null) {
                instance = BaseApplication()
            }
            return instance
        }
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        MultiDex.install(this)
    }

}